package com.akuhome.resource.enums;

public enum ResultEnum {
    UNKNOWN_ERROR(-1,"内部错误"),
    SUCCESS(0,"成功"),
    ID_EMPTY_ERROR(1,"id不能为空"),
    ARG_MISMATCH_ERROR(2,"输入了错误的参数请重试"),
    FORM_IDENTIFY_ERROR(3,"表单验证未通过"),
    TYPE_MISMATCH_ERROR(4,"参数类型不匹配"),
    METHOD_NOT_SUPPORT_ERROR(5,"请求方法类型不支持"),
    PARENT_ID_ERROR(6,"菜单的parentId字段有误"),
    DATA_MAP_ERROR(7,"定时任务参数错误"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
